package com.inkyi.assistant.app.utils;

import com.inkyi.framework.common.utils.SystemHelper;

import java.io.File;

public class ResourcesHelper {
    /**
     * 获取路径
     *
     * @param name 名字 .分割
     * @return {@link String }
     */
    public static String getPath111(String name) {
        if (name == null) {
            return null;
        }
        if (name.isEmpty()) {

            return SystemHelper.getResourcesPath("");
        }
        name = name.replace("\\", File.separator).replace("/", File.separator);
        if (!name.startsWith(File.separator)) {
            name = File.separator + name;
        }
        return SystemHelper.getResourcesPath(name);
    }
}
